#include <stdio.h>

int main()
{
    int x,p,n;
    scanf("%d%d%d", &x,&p,&n);
    int y;
    //scanf("%d", &y);
    //x = (x >> p) & ((1 << n)-1);
    //x = (x & ~(((1<< n)-1) << p)) | ((y << p) & (((1<< n)-1) << p));
    //x = x ^ (((1 << n)-1) << p);
    //x = ((unsigned)x >> n) | (x << 32 - n);
    x = (x << n)| ((unsigned)x >> 32-n);
    printf("%u\n", x);
}